package com.pijunn.report

import com.pijunn.common.MailingAddress;

class Contact {

    static constraints = {
		foundEvent(nullable: true)
 		lostEvent(nullable: true)
		email( email: true)	 
		cellPhone( nullable: true, matches: /^[+]?([0-9]*[\.\s\-\(\)]|[0-9]+){3,24}$/)
		phone2( nullable: true, matches: /^[+]?([0-9]*[\.\s\-\(\)]|[0-9]+){3,24}$/)
		skypeId (nullable: true)
	}
	
	String name
	String cellPhone
	String phone2
	String email
	String skypeId
	MailingAddress mailingAddress
	
	static embedded = ['mailingAddress']
	
	static belongsTo = [foundEvent: FoundEvent, lostEvent: LostEvent] 
}
